package com.yc.sole.job;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author yizuomin
 * @date 2024/1/23 13:46
 **/
@Slf4j
@Component
@RequiredArgsConstructor
public class SystemJob {

    @Scheduled(cron = "0 30 7,19 * * *")
    public void run() {
        log.info("交班任务-开始执行");
        log.info("交班任务-执行结束");
    }
}
